package kr.co.doriclassic.pro05_04;

public class Cyilder {
	private int iRedius;
	private int iHeight;
	private double dVolume;
	private final double PI = 3.141592;
	public Cyilder(int iRedius, int iHeight) {
		this.iRedius = iRedius;
		this.iHeight = iHeight;
	}
	
	public double proVolume(int iRedius, int iHeight){
		dVolume = (double)(PI*(iRedius*iRedius)*iHeight);
		return dVolume;
	}
	
	public void pntVolume(){
		double res = proVolume(iRedius, iHeight);
		System.out.println("원기둥의 부피 : "+res);
	}
}
